/*
 * @Author: wwssaabb
 * @Date: 2021-07-05 09:56:20
 * @LastEditTime: 2021-07-05 09:56:21
 * @FilePath: \demo\koa2_demo\demo\连mongodb接数据库增删改查_demo\mongodb\index.js
 */

const mongoose=require('mongoose')

mongoose.connect('mongodb://8.129.105.10/test',{useNewUrlParser:true,useUnifiedTopology:true})
  .then(()=>console.log('数据库连接成功！'))
  .catch(err=>console.log(err,'数据库连接失败！'))